package com.example.webmodule.properties;

import com.alibaba.cloud.nacos.NacosDiscoveryProperties;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.stereotype.Component;

@Data
@ToString
@Component
@ConfigurationProperties(prefix = "spring.cloud.nacos")
public class NacosYamlProperties {

    private String username;

    private String password;

    @NestedConfigurationProperty
    private NacosDiscoveryProperties nacosDiscoveryProperties;
}
